
import { Tools } from 'weaver-mobile';

//获取数据
export const requestBatchSubmit = params => {
    params.ismobile = 1;
    return Tools.callApi({
        url: '/api/workflow/reqform/requestBatchSubmit',
        method: 'POST',
        params,
    });
};

//加载流程短语
export const loadPhrasesDatas = (params = {}) => {
    params.ismobile = 1;
    return Tools.callApi({
        url: '/api/workflow/reqform/getPhrases',
        method: 'POST',
        params,
    });
}


//加载流程短语
export const loadCountInfo = (params = {}) => {
    params.ismobile = 1;
    return Tools.callApi({
        url: '/api/workflow/reqlist/doingCountInfo',
        method: 'POST',
        params,
    });
}

//加载流程短语
export const loadCountCustomInfo = (url,params = {}) => {
    params.ismobile = 1;
    return Tools.callApi({
        url,
        method: 'POST',
        params,
    });
}


//加载流程短语
export const getTabs = (params = {}) => {
    params.ismobile = 1;
    return Tools.callApi({
        url: '/api/workflow/mobile/getTabs',
        method: 'GET',
        params,
    });
}


//根绝datakey获取类表总数
export const getDataCount = (params = {}) => {
    return Tools.callApi({
        url: "/api/ec/dev/table/counts",
        method: 'POST',
        params,
    });
}


//全部已读
export const doReadIt = (params = {}) => {
    return Tools.callApi({
        url: "/api/workflow/reqlist/doReadIt",
        method: 'POST',
        params,
    });
}

 